<?php

namespace Models;


class BaseModel extends \Phalcon\Mvc\Model
{
    public function getSource()
    {
        return 'wm_' . strtolower(preg_replace('/((?<=[a-z])(?=[A-Z]))/', '_', str_replace(__NAMESPACE__ . '\\', '', get_class($this))));
    }

} 